package com.example.gcmtest1;

import android.net.Uri;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.MediaController;
import android.widget.VideoView;
import android.support.v4.app.NavUtils;

public class VideoPlayer1 extends Activity {

	private MediaController mc;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_video_player1);
        
        Uri uri = Uri.parse("http://localhost:5555/q/192.168.1.8/18.mp4");
        this.mc = new MediaController(this);
        
        VideoView videoView = (VideoView) findViewById(R.id.videoView1);
        videoView.setVideoURI(uri);
        videoView.setMediaController(this.mc);
                
        videoView.start();
        //this.mc.show(60000);
        
        
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_video_player1, menu);
        return true;
    }

    
}
